#ifndef PACHAGEMGR_H
#define PACHAGEMGR_H

#include "singleton.h"
#include "register_surpport.h"
#include "i_package.h"

class PackageMgr : public ISingleton<PackageMgr>, public IRegister<int, IPackage>
{
private:
	typedef IRegister<int, IPackage> Register;
public:
	void add(Register::RegisteePtr registee);
	Register::RegisteePtr get(int index);
};

#endif